<?php
/**
 * Created by PhpStorm.
 * User: 王松
 * Time: 2017/6/18 17:13
 */

namespace App\Transformers;

use App\Models\MedicalAuxiliary;
use League\Fractal\TransformerAbstract;

class MedicalAuxiliaryTransformer extends TransformerAbstract
{
    /**
     * @param \App\Models\MedicalAuxiliary $auxiliary
     * @return array
     */
    public function transform(MedicalAuxiliary $auxiliary)
    {
        return [
            'id'                        => $auxiliary->id,
            'record_id'                 => $auxiliary->record_id,
            'blood'                     => $auxiliary->blood,
            'insulin'                   => $auxiliary->insulin,
            'peptide_c'                 => $auxiliary->peptide_c,
            'ogtt'                      => $auxiliary->ogtt,
            'saccharify'                => $auxiliary->saccharify,
            'diabetes_antibody'         => $auxiliary->diabetes_antibody,
            'acr'                       => $auxiliary->acr,
            'uaer'                      => $auxiliary->uaer,
            'urine_routine'             => $auxiliary->urine_routine,
            'biochemical_examination'   => $auxiliary->biochemical_examination,
            'liver_function'            => $auxiliary->liver_function,
            'kidney'                    => $auxiliary->kidney,
            'electrolyte'               => $auxiliary->electrolyte,
            'tg_chohdlldl'              => $auxiliary->tg_chohdlldl,
            'bt_paba'                   => $auxiliary->bt_paba,
            'thyroid_function_one'      => $auxiliary->thyroid_function_one,
            'thyroid_function_two'      => $auxiliary->thyroid_function_two,
            'thyroid_function_three'    => $auxiliary->thyroid_function_three,
            'plasma_acth'               => $auxiliary->plasma_acth,
            'blood_cortisol'            => $auxiliary->blood_cortisol,
            'endocrine_examination'     => $auxiliary->endocrine_examination,
            'growth_hormone'            => $auxiliary->growth_hormone,
            'insulin_growth_factor'     => $auxiliary->insulin_growth_factor,
            'blood_routine'             => $auxiliary->blood_routine,
            'blood_gas_analysis'        => $auxiliary->blood_gas_analysis,
            'blood_coagulation_one'     => $auxiliary->blood_coagulation_one,
            'blood_coagulation_two'     => $auxiliary->blood_coagulation_two,
            'dexamethasone_suppression' => $auxiliary->dexamethasone_suppression,
            'hydroxyvitamin'            => $auxiliary->hydroxyvitamin,
            'uca_up'                    => $auxiliary->uca_up,
            'collagen_degradation'      => $auxiliary->collagen_degradation,
            'iconography'               => $auxiliary->iconography,
            'remark'                    => $auxiliary->remark,
        ];
    }
}